import * as allUrls from '../../utils/allUrls.js'
import * as commonFunc from '../../utils/commonFunc'
import myvideo from '../../components/view/index.vue'
import mym3u8 from '../../components/view/m3u8.vue'
import videojs from "video.js";
import "videojs-contrib-hls";

import { VideoInfo } from "../../api/videoList.js";
export default {
	components: { myvideo,mym3u8 },
	name: "essayInfo",
	inject: ['reload'],
	data() {
		return {
			essayId: '',
			essayInfo: {}, //文章信息
			value: 0,  //打分文章推荐星级
			dialogVisible: false,
			userInfo: JSON.parse(sessionStorage.getItem('userInfo')), //用户信息
			isUserForEssay: false, //判断是否用户本人
			commentDialog: false, //发布评论弹窗
			comment: '', //评论内容
			commentLists: '', //评论列表
			defaultCommentLoad: 4,
			commentLoadText: '加载更多',
			visible: false,
			essayVisible: false,
			videoinfo:{},
		}
	},
	methods: {

	},
	mounted() {
		this.essayId = this.$route.query.id;
		VideoInfo({
			videoId:this.essayId,
		}).then(response => {
			this.videoinfo = response.data
		});
	}
}
